package designPattern.Singleton;

/*采用内部类*/
public class Singleton07 {
    private Singleton07(){}

    private static class Singleton07Holder {
        private final static Singleton07 INSTANCE = new Singleton07();
    }

    public static Singleton07 getInstance() {
        return Singleton07Holder.INSTANCE;
    }

}
